using System;

#if WINDOWS_PHONE
using Microsoft.Phone.Tasks;
#endif

namespace AdRotatorXNA.Helpers
{
    static class LaunchUrl
    {
        public static void Show(Uri url)
        {
            if (url == null)
                return;

            try
            {
#if WINDOWS_PHONE
                var wb = new WebBrowserTask();
                wb.Uri = url;
                wb.Show();
#elif WINDOWS_RT

#endif
            }
            catch { }
        }
    }
}
